/**
 *
 * 【分销】权限
 *
 * 短剧管理-短剧库
 * 渠道管理-渠道列表
 * 运营管理-素材库
 * 用户管理-用户列表
 * 订单管理-金币/会员订单
 * */
import Layout from '@/layout/index.vue'

export const routerDistribution = [
  {
    name: 'Video',
    path: '/video',
    hidden: false,
    redirect: 'noRedirect',
    component: 'Layout',
    alwaysShow: true,
    meta: { title: '短剧管理', icon: 'menu-video', noCache: false, link: null },
    children: [
      {
        name: 'LibraryList',
        path: 'library/list',
        hidden: false,
        component: 'video/library/list',
        meta: { title: '短剧库', icon: 'menu-video', noCache: true, link: null }
      },
      {
        name: 'LibraryAdd',
        path: 'library/add',
        hidden: true,
        component: 'video/library/add',
        meta: { title: '添加短剧库', icon: 'menu-video', noCache: true, link: null }
      },
      {
        name: 'LibraryDetail',
        path: 'library/detail',
        hidden: true,
        component: 'video/library/detail',
        meta: { title: '剧集库', icon: 'menu-video', noCache: true, link: null }
      }
    ]
  },
  {
    name: 'Channel',
    path: '/channel',
    hidden: false,
    redirect: 'noRedirect',
    component: 'Layout',
    alwaysShow: true,
    meta: { title: '渠道管理', icon: 'menu-channel', noCache: false, link: null },
    children: [
      {
        name: 'ChannelDataList',
        path: 'channelData/list',
        hidden: false,
        component: 'channel/channelData/list',
        meta: { title: '渠道列表', icon: 'menu-channel', noCache: true, link: null }
      },
      {
        name: 'ChannelDataAdd',
        path: 'channelData/add',
        hidden: true,
        component: 'channel/channelData/add',
        meta: { title: '添加渠道', icon: 'menu-channel', noCache: false, link: null }
      }
    ]
  },
  {
    name: 'Config',
    path: '/config',
    hidden: false,
    redirect: 'noRedirect',
    component: 'Layout',
    alwaysShow: true,
    meta: { title: '运营管理', icon: 'menu-config', noCache: false, link: null },
    children: [
      {
        name: 'MaterialList',
        path: 'material/list',
        hidden: false,
        component: 'config/material/list',
        meta: { title: '素材库', icon: 'menu-config', noCache: true, link: null }
      },
      {
        name: 'MaterialList',
        path: 'materialMansen/list',
        hidden: false,
        component: 'config/materialMansen/list',
        meta: { title: '素材库-漫森', icon: 'menu-config', noCache: true, link: null }
      }
    ]
  },
  {
    name: 'User',
    path: '/user',
    hidden: false,
    redirect: 'noRedirect',
    component: 'Layout',
    alwaysShow: true,
    meta: { title: '用户管理', icon: 'menu-user', noCache: false, link: null },
    children: [
      {
        name: 'UserDataList',
        path: 'userData/list',
        hidden: false,
        component: 'user/userData/list',
        meta: { title: '用户列表', icon: 'menu-user', noCache: true, link: null }
      }
    ]
  },
  {
    name: 'Order',
    path: '/order',
    hidden: false,
    redirect: 'noRedirect',
    component: 'Layout',
    alwaysShow: true,
    meta: { title: '订单管理', icon: 'menu-order', noCache: false, link: null },
    children: [
      {
        name: 'OrderDataCoinList',
        path: 'orderDataCoin/list',
        hidden: false,
        component: 'order/orderDataCoin/list',
        meta: { title: '金币订单', icon: 'menu-order', noCache: true, link: null }
      },
      {
        name: 'OrderDataVipList',
        path: 'orderDataVip/list',
        hidden: false,
        component: 'order/orderDataVip/list',
        meta: { title: '会员订单', icon: 'menu-order', noCache: true, link: null }
      }
    ]
  }
]
